#ifndef __MESSAGEOBSERVER_H__
#define __MESSAGEOBSERVER_H__

#include <pthread.h>
#include <string>

class Message;
class MessageCenter;

class MessageObserver
{
  private:
	pthread_t _thread_id;
	std::string _name;
	void (*_callback)(Message *, void *);
	void *_userInfo;

	MessageObserver(pthread_t thread_id, std::string _name, void (*callback)(Message *, void *), void *userInfo);
	
	friend class MessageCenter;

  public:
	~MessageObserver();
};

#endif /* __MESSAGEOBSERVER_H__ */

